package com.htfc786.reminder.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @TableName medicine_stock
 */
@TableName(value = "medicine_stock")
@Data
public class MedicineStock implements Serializable {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 家庭id
     */
    private Long familyId;

    /**
     * 药品id
     */
    private Long medicineId;

    /**
     * 购置时间
     */
    private Date purchaseDate;

    /**
     * 生产日期
     */
    private Date productionDate;

    /**
     * 有效期至
     */
    private Date expiryDate;

    /**
     * 剩余量
     */
    private Integer remainingQuantity;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}